package cn.tedu.wenzhang3.pojo.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class AddArticle {
    @NotBlank(message = "标题不能为空")
    @ApiModelProperty(value = "标题",required = true,example = "title123")
    private String title;
    @NotBlank(message = "内容不能为空")
    @ApiModelProperty(value = "内容",required = true,example = "content123")
    private String content;
}
